package com.meilai.project.entity.personnel.onTurn;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.dto.workflow.FlowBusinessDataSuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * @author 杨凯博
 * @date 2022/1/25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("leave_office_apply")
@ApiModel(value= "离职申请表")
public class LeaveOfficeApply extends FlowBusinessDataSuperEntity {
    @ApiModelProperty(value = "花名册id")
    private Long roster_id;
    @ApiModelProperty("拟离职日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate plan_leave_date;
    @ApiModelProperty("合同截止日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate contract_end_at;
    @ApiModelProperty(value = "员工类别id")
    private Integer staff_type_id;
    @ApiModelProperty("离职原因")
    private String reason;
    @ApiModelProperty("对公司的建议")
    private String advice;
    @ApiModelProperty("附件-离职交接单链接")
    private String attachment_handover_sheet;
    @ApiModelProperty("合同解除日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate termination_date;
}


